﻿using NLog.Config;
using NLog;
using System.Drawing;

namespace WebApplication1.Utils
{
    public static class MyLogHelper
    {
        private static Logger logger;

        static MyLogHelper()
        {
            LogManager.Configuration = new XmlLoggingConfiguration(string.Format("{0}/NLog.config", AppDomain.CurrentDomain.BaseDirectory.ToString()));
            logger = NLog.LogManager.GetCurrentClassLogger();
        }

        public static void Debug(string res)
        {
            logger.Debug(res);
        }

        public static void Info(string res)
        {
            logger.Info(res);
        }

        public static void Error(string res)
        {
            logger.Error(res);
        }

        public static void Warning(string res)
        {
            logger.Warn(res);
        }
    }
}
